package unicamp.mc;

//import unicamp.mc.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioGroup;
import android.widget.Toast;

public class AddComentarioActivity extends Activity {

	    /** Called when the activity is first created. */

	
	private Button btOk;
	
	public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.add_comentario);
	        
	        btOk = (Button) findViewById(R.id.widget39);
	        btOk.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) { 
					okClick(); 
				}
			});
	        
	        //RadioButton
	        final RadioGroup group = (RadioGroup)findViewById(R.id.widget31);
	        group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            		 public void onCheckedChanged(RadioGroup group, int id) {
	                  if(id == R.id.widget32)
	                        Toast.makeText(AddComentarioActivity.this, "Você clicou em Comentario Positivo", Toast.LENGTH_SHORT).show();
	                  else if(id==R.id.widget33)
	                        Toast.makeText(AddComentarioActivity.this, "Você clicou em Comentario Negativo", Toast.LENGTH_SHORT).show();
	 	                  }

	        });

	}
	
	private void okClick(){
		
    }
	

}